import { sendAjax } from './../util/util.js'
$('#loginBtn').on('click', function () {
    // console.log('登录');
    sendAjax('/user/login', 'post', {
        acc: $('#acc').val(),
        pwd: $('#pwd').val()
    }, function (data) {
        alert(data.message);
        localStorage.setItem('token', data.data);
    })
});